package com.itheima.singleton;

/*****
 * @Author: http://www.itheima.com
 * @Description: com.itheima.singleton.SingleModelTest
 ****/
public class SingleModelTest {

    public static void main(String[] args) {
        //获取单利对象的实例
        SingleModel singleModel1 = SingleModel.getInstance();
        SingleModel singleModel2 = SingleModel.getInstance();

        System.out.println(singleModel2 == singleModel1);
    }
}
